package com.cpecc.manager.wuzi;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cpecc.dao.wuzi.HeTongDao;
import com.cpecc.model.wuzi.CaiGou;
import com.cpecc.model.wuzi.HeTong;

@Service
@Transactional
public class HeTongManager {
	
	@Autowired
	private HeTongDao heTongDao;
	
	public void save(HeTong heTong){
		heTongDao.save(heTong);
	}
	
	public boolean cover(HeTong heTong){
		return heTongDao.cover(heTong);
	}
	
	public HeTong get(String id){
		return heTongDao.get(id);
	}
	
	public boolean delete(String id){
		return heTongDao.delete(id);
	}

	public List<HeTong> list(){
		return heTongDao.list();
	}
	
	public List<HeTong> list(String fileName){
		return heTongDao.list(fileName);
	}
	
	public List<HeTong> list(CaiGou caiGou){
		return heTongDao.list(caiGou);
	}
}
